﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using GEPSDevelopEnvironment.Common;

namespace GEPSDevelopEnvironment
{
    /// <summary>
    /// Window1.xaml 的交互逻辑
    /// </summary>
    public partial class GRSSearchPathFrm : Window
    {

        public List<string> SearchPaths
        {
            set {
                foreach (string strPath in value)
                {
                    ListViewItem oItem = new ListViewItem();
                    oItem.Content = strPath;
                    lstSearchPaths.Items.Insert(lstSearchPaths.Items.Count - 1, oItem);
                }
            }
            get
            {
                List<string> result = new List<string>();
                for (int i=0; i<lstSearchPaths.Items.Count-1; i++)
                {
                    result.Add((string)((ListViewItem)lstSearchPaths.Items.GetItemAt(i)).Content);
                }
                return result;
            }

        }

        public GRSSearchPathFrm()
        {
            InitializeComponent();
        }

        private void lviAdd_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            
        }
    }
}
